import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/logintab',
        name: 'LoginTab',
        meta: {
            layout: 'login'
        },
        component: () => import('../components/LoginTab')
    },
    {
        path: '/user',
        name: 'User',
        meta: {
            layout: 'user'
        },
        component: () => import('../views/User.vue')
    },
    {
        path: '/apply',
        name: 'Apply',
        component: () => import('../views/Apply.vue')
    },
    {
        path: '/healthcommit',
        name: 'HealthCommit',
        component: () => import('../views/HealthCommit.vue')
    },
    {
        path: '/admin',
        name: 'Admin',
        component: () => import('../views/Admin.vue')
    },
    {
        path: '/admission',
        name: 'Admission',
        component: () => import('../views/Admisson.vue')
    },
    {
        path: '/',
        name: 'Welcome',
        component: () => import('../views/Welcome.vue')
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
